.class public Lcom/waiqin365/lightapp/syorder/b/a/n;
.super Lcom/waiqin365/lightapp/syorder/b/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Z

.field public e:Z

.field public f:Ljava/util/List;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x66

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/syorder/b/d;-><init>(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/n;->f:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 11

    const/4 v1, 0x1

    const/4 v3, 0x0

    :try_start_0
    new-instance v6, Lorg/json/JSONObject;

    invoke-direct {v6, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "code"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "code"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/n;->b:Ljava/lang/String;

    const-string/jumbo v0, "1"

    iget-object v2, p0, Lcom/waiqin365/lightapp/syorder/b/a/n;->b:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/n;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const-string/jumbo v0, "prods"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_4

    const-string/jumbo v0, "prods"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    if-eqz v7, :cond_4

    move v5, v3

    move v2, v3

    :goto_0
    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-ge v5, v0, :cond_4

    invoke-virtual {v7, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v0

    new-instance v8, Lcom/waiqin365/lightapp/syorder/d/b;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/syorder/d/b;-><init>()V

    invoke-virtual {v8, v0}, Lcom/waiqin365/lightapp/syorder/d/b;->a(Lorg/json/JSONObject;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/n;->f:Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    if-nez v2, :cond_11

    move v4, v3

    :goto_1
    iget-object v0, v8, Lcom/waiqin365/lightapp/syorder/d/b;->t:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v4, v0, :cond_3

    iget-object v0, v8, Lcom/waiqin365/lightapp/syorder/d/b;->t:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/c/a;

    new-instance v9, Lcom/waiqin365/base/c/a;

    iget-object v10, v0, Lcom/waiqin365/base/c/a;->a:Ljava/lang/String;

    iget-object v0, v0, Lcom/waiqin365/base/c/a;->b:Ljava/lang/String;

    invoke-direct {v9, v10, v0}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->c:Ljava/util/List;

    invoke-interface {v0, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_1

    :cond_0
    move v1, v3

    :cond_1
    :goto_2
    return v1

    :cond_2
    const-string/jumbo v0, "message"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "message"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/n;->c:Ljava/lang/String;

    goto :goto_2

    :catch_0
    move-exception v0

    move v1, v3

    goto :goto_2

    :cond_3
    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_11

    move v0, v1

    :goto_3
    add-int/lit8 v2, v5, 0x1

    move v5, v2

    move v2, v0

    goto :goto_0

    :cond_4
    const-string/jumbo v0, "zycbf"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_6

    const-string/jumbo v0, "zycbf"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_5

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_5
    move v0, v3

    :goto_4
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v0, v4, :cond_6

    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v5, Lcom/waiqin365/base/c/a;

    const-string/jumbo v7, "id"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string/jumbo v8, "name"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v5, v7, v4}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v4

    iget-object v4, v4, Lcom/waiqin365/lightapp/syorder/ap;->a:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    :cond_6
    const-string/jumbo v0, "pkBusitype"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_8

    const-string/jumbo v0, "pkBusitype"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_7

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_7
    move v0, v3

    :goto_5
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v0, v4, :cond_8

    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v5, Lcom/waiqin365/base/c/a;

    const-string/jumbo v7, "id"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string/jumbo v8, "name"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v5, v7, v4}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v4

    iget-object v4, v4, Lcom/waiqin365/lightapp/syorder/ap;->b:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    :cond_8
    const-string/jumbo v0, "payType"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_a

    const-string/jumbo v0, "payType"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_9

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_9
    move v0, v3

    :goto_6
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v0, v4, :cond_a

    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v5, Lcom/waiqin365/base/c/a;

    const-string/jumbo v7, "id"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string/jumbo v8, "name"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v5, v7, v4}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v4

    iget-object v4, v4, Lcom/waiqin365/lightapp/syorder/ap;->d:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    :cond_a
    const-string/jumbo v0, "spType"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_c

    const-string/jumbo v0, "spType"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_b

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/ap;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_b
    move v0, v3

    :goto_7
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v0, v4, :cond_c

    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v5, Lcom/waiqin365/lightapp/product/d/h;

    invoke-direct {v5}, Lcom/waiqin365/lightapp/product/d/h;-><init>()V

    const-string/jumbo v7, "id"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v5, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    const-string/jumbo v7, "parent_id"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v5, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    const-string/jumbo v7, "name"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/waiqin365/lightapp/product/d/h;->c:Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v4

    iget-object v4, v4, Lcom/waiqin365/lightapp/syorder/ap;->e:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_7

    :cond_c
    const-string/jumbo v0, "isOpenBill"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_d

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    const-string/jumbo v2, "isOpenBill"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getBoolean(Ljava/lang/String;)Z

    move-result v2

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/syorder/ap;->f:Ljava/lang/Boolean;

    :cond_d
    const-string/jumbo v0, "openBillCmId"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_e

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    const-string/jumbo v2, "openBillCmId"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/syorder/ap;->g:Ljava/lang/String;

    :cond_e
    const-string/jumbo v0, "openBillCmSourceCode"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_f

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    const-string/jumbo v2, "openBillCmSourceCode"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/syorder/ap;->h:Ljava/lang/String;

    :cond_f
    const-string/jumbo v0, "openBillCmName"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_10

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    const-string/jumbo v2, "openBillCmName"

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/syorder/ap;->i:Ljava/lang/String;

    :cond_10
    const-string/jumbo v0, "isPs"

    invoke-virtual {v6, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    const-string/jumbo v2, "\u662f"

    const-string/jumbo v4, "isPs"

    invoke-virtual {v6, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightapp/syorder/ap;->j:Ljava/lang/Boolean;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_2

    :cond_11
    move v0, v2

    goto/16 :goto_3
.end method
